import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ceb.service.Userservice;

/**
 * @author name:dss
 * @version 1.0
 * @description: TODO
 * @date 2022/8/232022/8/23
 */
public class testproxy {
    @Test
    public void testDynamic(){
        ApplicationContext context=new ClassPathXmlApplicationContext("application.xml");
        Userservice userservice=(Userservice) context.getBean("userserviceImpl");
        String xiaoming=userservice.add("xiaoming");
        System.out.println(xiaoming);
        userservice.select();

    }
}
